package o;

import android.os.Binder;
import android.os.IBinder;
import android.os.IInterface;
import android.os.Parcel;
import android.os.RemoteException;

public interface awk extends IInterface {

    public static abstract class a extends Binder implements awk {

        static class a implements awk {
            private IBinder ˊ;

            a(IBinder iBinder) {
                this.ˊ = iBinder;
            }

            public IBinder asBinder() {
                return this.ˊ;
            }

            public void ˏ(String str, int i, long j, long j2, String str2) throws RemoteException {
                Parcel obtain = Parcel.obtain();
                try {
                    obtain.writeInterfaceToken("com.huawei.android.powerkit.adapter.IStateSink");
                    obtain.writeString(str);
                    obtain.writeInt(i);
                    obtain.writeLong(j);
                    obtain.writeLong(j2);
                    obtain.writeString(str2);
                    this.ˊ.transact(1, obtain, null, 1);
                } finally {
                    obtain.recycle();
                }
            }
        }

        public a() {
            attachInterface(this, "com.huawei.android.powerkit.adapter.IStateSink");
        }

        public static awk ˎ(IBinder iBinder) {
            if (iBinder == null) {
                return null;
            }
            IInterface queryLocalInterface = iBinder.queryLocalInterface("com.huawei.android.powerkit.adapter.IStateSink");
            if (queryLocalInterface == null || !(queryLocalInterface instanceof awk)) {
                return new a(iBinder);
            }
            return (awk) queryLocalInterface;
        }

        public IBinder asBinder() {
            return this;
        }

        public boolean onTransact(int i, Parcel parcel, Parcel parcel2, int i2) throws RemoteException {
            String str = "com.huawei.android.powerkit.adapter.IStateSink";
            switch (i) {
                case 1:
                    parcel.enforceInterface(str);
                    ˏ(parcel.readString(), parcel.readInt(), parcel.readLong(), parcel.readLong(), parcel.readString());
                    return true;
                case 1598968902:
                    parcel2.writeString(str);
                    return true;
                default:
                    return super.onTransact(i, parcel, parcel2, i2);
            }
        }
    }

    void ˏ(String str, int i, long j, long j2, String str2) throws RemoteException;
}
